package com.wlcj.www.enumtype;

public enum EventTypeEnum {

	PAOLU(0,"跑路"),
	TIXIAN(1,"提现困难"),
	TING(2,"停业"),
	BUMING(3,"情况不祥");
	private int id;
	private String desc;
	
	private EventTypeEnum(int id, String desc) {
		this.id = id;
		this.desc = desc;
	}
	
	
	public int getId() {
		return id;
	}


	public void setId(int id) {
		this.id = id;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public static EventTypeEnum getEnumByName(int id) {
		EventTypeEnum[] enums = EventTypeEnum.values();
		for(EventTypeEnum enumtype:enums) {
			if(enumtype.getId()==id) {
				return enumtype;
			}
		}
		return PAOLU;
	}
}
